package com.hello.controller;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

public class ChainUtil {
   public static Param of() {
	   return new Param();
   }
   private static class Param {
	   private static Map<String, Object> m = new HashMap<>();;
	   private Param add(String key,Object value) {
		   m.put(key, value);
		   return this;
	   }
	   
	   private void getValue() {
		   System.out.println(m);
	   }

   }
   
   @Test
   public void test() {
	   ChainUtil.of().add("a",1).add("b", 2).add("c", 3).getValue();
   }
}
